package topics;

<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<%@taglib uri="http://java.sun.com/jsf/html" prefix="h" %><%@taglib uri="http://www.icesoft.com/icefaces/component" prefix="ice" %>
<f:view>
    <html>
        <head>
            <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
            <title>Topics Detail</title>
            <link rel="stylesheet" type="text/css" href="/WebIDE-war/faces/jsfcrud.css" />
        </head>
        <body>
            <ice:panelGroup id="messagePanel" layout="block">
                <ice:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
            </ice:panelGroup>
            <h1>Topics Detail</h1>
            <ice:form>
                <ice:panelGrid columns="2">
                    <ice:outputText value="Id:"/>
                    <ice:outputText value="#{topics.topics.id}" title="Id" />
                    <ice:outputText value="Title:"/>
                    <ice:outputText value="#{topics.topics.title}" title="Title" />
                    <ice:outputText value="UserName:"/>
                    <ice:panelGroup>
                        <ice:outputText value=" #{topics.topics.userName}"/>
                        <ice:panelGroup rendered="#{topics.topics.userName != null}">
                            <ice:outputText value=" ("/>
                            <ice:commandLink value="Show" action="#{users.detailSetup}">
                                <f:param name="jsfcrud.currentTopics" value="#{jsfcrud_class['webidewar.jsf.util.JsfUtil'].jsfcrud_method['getAsConvertedString'][topics.topics][topics.converter].jsfcrud_invoke}"/>
                                <f:param name="jsfcrud.currentUsers" value="#{jsfcrud_class['webidewar.jsf.util.JsfUtil'].jsfcrud_method['getAsConvertedString'][topics.topics.userName][users.converter].jsfcrud_invoke}"/>
                                <f:param name="jsfcrud.relatedController" value="topics"/>
                                <f:param name="jsfcrud.relatedControllerType" value="webidewar.jsf.TopicsController"/>
                            </ice:commandLink>
                            <ice:outputText value=" "/>
                            <ice:commandLink value="Edit" action="#{users.editSetup}">
                                <f:param name="jsfcrud.currentTopics" value="#{jsfcrud_class['webidewar.jsf.util.JsfUtil'].jsfcrud_method['getAsConvertedString'][topics.topics][topics.converter].jsfcrud_invoke}"/>
                                <f:param name="jsfcrud.currentUsers" value="#{jsfcrud_class['webidewar.jsf.util.JsfUtil'].jsfcrud_method['getAsConvertedString'][topics.topics.userName][users.converter].jsfcrud_invoke}"/>
                                <f:param name="jsfcrud.relatedController" value="topics"/>
                                <f:param name="jsfcrud.relatedControllerType" value="webidewar.jsf.TopicsController"/>
                            </ice:commandLink>
                            <ice:outputText value=" "/>
                            <ice:commandLink value="Destroy" action="#{users.destroy}">
                                <f:param name="jsfcrud.currentTopics" value="#{jsfcrud_class['webidewar.jsf.util.JsfUtil'].jsfcrud_method['getAsConvertedString'][topics.topics][topics.converter].jsfcrud_invoke}"/>
                                <f:param name="jsfcrud.currentUsers" value="#{jsfcrud_class['webidewar.jsf.util.JsfUtil'].jsfcrud_method['getAsConvertedString'][topics.topics.userName][users.converter].jsfcrud_invoke}"/>
                                <f:param name="jsfcrud.relatedController" value="topics"/>
                                <f:param name="jsfcrud.relatedControllerType" value="webidewar.jsf.TopicsController"/>
                            </ice:commandLink>
                            <ice:outputText value=" )"/>
                        </ice:panelGroup>
                    </ice:panelGroup>
                    <ice:outputText value="RepliesCollection:" />
                    <ice:panelGroup>
                        <ice:outputText rendered="#{empty topics.topics.repliesCollection}" value="(No Items)"/>
                        <ice:dataTable value="#{topics.topics.repliesCollection}" var="item" 
                                     border="0" cellpadding="2" cellspacing="0" rowClasses="jsfcrud_odd_row,jsfcrud_even_row" rules="all" style="border:solid 1px" 
                                     rendered="#{not empty topics.topics.repliesCollection}">
                            <ice:column>
                                <f:facet name="header">
                                    <ice:outputText value="Id"/>
                                </f:facet>
                                <ice:outputText value=" #{item.id}"/>
                            </ice:column>
                            <ice:column>
                                <f:facet name="header">
                                    <ice:outputText value="Titles"/>
                                </f:facet>
                                <ice:outputText value=" #{item.titles}"/>
                            </ice:column>
                            <ice:column>
                                <f:facet name="header">
                                    <ice:outputText value="Content"/>
                                </f:facet>
                                <ice:outputText value=" #{item.content}"/>
                            </ice:column>
                            <ice:column>
                                <f:facet name="header">
                                    <ice:outputText value="Created"/>
                                </f:facet>
                                <ice:outputText value="#{item.created}">
                                    <f:convertDateTime pattern="MM/dd/yyyy HH:mm:ss" />
                                </ice:outputText>
                            </ice:column>
                            <ice:column>
                                <f:facet name="header">
                                    <ice:outputText value="Modified"/>
                                </f:facet>
                                <ice:outputText value="#{item.modified}">
                                    <f:convertDateTime pattern="MM/dd/yyyy HH:mm:ss" />
                                </ice:outputText>
                            </ice:column>
                            <ice:column>
                                <f:facet name="header">
                                    <ice:outputText value="TopicId"/>
                                </f:facet>
                                <ice:outputText value=" #{item.topicId}"/>
                            </ice:column>
                            <ice:column>
                                <f:facet name="header">
                                    <ice:outputText value="UserName"/>
                                </f:facet>
                                <ice:outputText value=" #{item.userName}"/>
                            </ice:column>
                            <ice:column>
                                <f:facet name="header">
                                    <ice:outputText escape="false" value=";"/>
                                </f:facet>
                                <ice:commandLink value="Show" action="#{replies.detailSetup}">
                                    <f:param name="jsfcrud.currentTopics" value="#{jsfcrud_class['webidewar.jsf.util.JsfUtil'].jsfcrud_method['getAsConvertedString'][topics.topics][topics.converter].jsfcrud_invoke}"/>
                                    <f:param name="jsfcrud.currentReplies" value="#{jsfcrud_class['webidewar.jsf.util.JsfUtil'].jsfcrud_method['getAsConvertedString'][item][replies.converter].jsfcrud_invoke}"/>
                                    <f:param name="jsfcrud.relatedController" value="topics" />
                                    <f:param name="jsfcrud.relatedControllerType" value="webidewar.jsf.TopicsController" />
                                </ice:commandLink>
                                <ice:outputText value=" "/>
                                <ice:commandLink value="Edit" action="#{replies.editSetup}">
                                    <f:param name="jsfcrud.currentTopics" value="#{jsfcrud_class['webidewar.jsf.util.JsfUtil'].jsfcrud_method['getAsConvertedString'][topics.topics][topics.converter].jsfcrud_invoke}"/>
                                    <f:param name="jsfcrud.currentReplies" value="#{jsfcrud_class['webidewar.jsf.util.JsfUtil'].jsfcrud_method['getAsConvertedString'][item][replies.converter].jsfcrud_invoke}"/>
                                    <f:param name="jsfcrud.relatedController" value="topics" />
                                    <f:param name="jsfcrud.relatedControllerType" value="webidewar.jsf.TopicsController" />
                                </ice:commandLink>
                                <ice:outputText value=" "/>
                                <ice:commandLink value="Destroy" action="#{replies.destroy}">
                                    <f:param name="jsfcrud.currentTopics" value="#{jsfcrud_class['webidewar.jsf.util.JsfUtil'].jsfcrud_method['getAsConvertedString'][topics.topics][topics.converter].jsfcrud_invoke}"/>
                                    <f:param name="jsfcrud.currentReplies" value="#{jsfcrud_class['webidewar.jsf.util.JsfUtil'].jsfcrud_method['getAsConvertedString'][item][replies.converter].jsfcrud_invoke}"/>
                                    <f:param name="jsfcrud.relatedController" value="topics" />
                                    <f:param name="jsfcrud.relatedControllerType" value="webidewar.jsf.TopicsController" />
                                </ice:commandLink>
                            </ice:column>
                        </ice:dataTable>
                    </ice:panelGroup>
                </ice:panelGrid>
                <br />
                <ice:commandLink action="#{topics.destroy}" value="Destroy">
                    <f:param name="jsfcrud.currentTopics" value="#{jsfcrud_class['webidewar.jsf.util.JsfUtil'].jsfcrud_method['getAsConvertedString'][topics.topics][topics.converter].jsfcrud_invoke}" />
                </ice:commandLink>
                <br />
                <br />
                <ice:commandLink action="#{topics.editSetup}" value="Edit">
                    <f:param name="jsfcrud.currentTopics" value="#{jsfcrud_class['webidewar.jsf.util.JsfUtil'].jsfcrud_method['getAsConvertedString'][topics.topics][topics.converter].jsfcrud_invoke}" />
                </ice:commandLink>
                <br />
                <ice:commandLink action="#{topics.createSetup}" value="New Topics" />
                <br />
                <ice:commandLink action="#{topics.listSetup}" value="Show All Topics Items"/>
                <br />
                <ice:commandLink value="Index" action="welcome" immediate="true" />
            </ice:form>
        </body>
    </html>
</f:view>
